import axios from 'axios';
import React, { useEffect } from 'react'

export default function ProxyCom() {
  //输出环境变量
  console.log(process.env.REACT_APP_NAME);
  console.log(process.env.REACT_APP_URL);
  //发送请求
  useEffect(() => {
    let getGoods = async () => {
      let result = await axios.get('/api/goods');
      console.log(result);
    }

    getGoods();
  }, [])

  return (
    <div>05_ProxyCom</div>
  )
}
